package movie.test.as.user.biz;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;

import movie.test.as.user.bean.AdminUser;

import movie.test.as.user.dao.AdminUserDao;
import movie.test.common.BaseBiz;

@Component
public class AdminUserBiz extends BaseBiz {

	@Autowired
	private AdminUserDao adminUserDao;
	public AdminUser login(JSONObject objs) {
		
		return adminUserDao.login(objs);
	}
	public List findAllAdminList(JSONObject objs) {
		PageHelper.startPage(getPagePara(objs));
		return adminUserDao.findAllAdminList(objs);
	}
	public int addAdminUser(JSONObject objs) {
		// TODO Auto-generated method stub
		return adminUserDao.addAdminUser(objs);
	}

	

}
